﻿using System;
using System.Collections.Generic;
using System.Data.Linq.Mapping;
using System.Linq;
using System.Web;

namespace iMobileS.Models.Partial
{
    public class Products
    {
        private int _ProductID;

        private string _ProductName;

        private Nullable<int> _SupplierID;

        private Nullable<int> _CategoryID;

        private string _QuantityPerUnit;

        private Nullable<decimal> _UnitPrice;

        private Nullable<short> _UnitsInStock;

        private Nullable<short> _UnitsOnOrder;

        private Nullable<short> _ReorderLevel;

        private bool _Discontinued;

        public Products()
        {
        }

        [Column(Storage = "_ProductID", DbType = "Int NOT NULL")]
        public int ProductID
        {
            get
            {
                return this._ProductID;
            }
            set
            {
                if ((this._ProductID != value))
                {
                    this._ProductID = value;
                }
            }
        }

        [Column(Storage = "_ProductName", DbType = "NVarChar(40) NOT NULL", CanBeNull = false)]
        public string ProductName
        {
            get
            {
                return this._ProductName;
            }
            set
            {
                if ((this._ProductName != value))
                {
                    this._ProductName = value;
                }
            }
        }

        [Column(Storage = "_SupplierID", DbType = "Int")]
        public Nullable<int> SupplierID
        {
            get
            {
                return this._SupplierID;
            }
            set
            {
                if ((this._SupplierID != value))
                {
                    this._SupplierID = value;
                }
            }
        }

        [Column(Storage = "_CategoryID", DbType = "Int")]
        public Nullable<int> CategoryID
        {
            get
            {
                return this._CategoryID;
            }
            set
            {
                if ((this._CategoryID != value))
                {
                    this._CategoryID = value;
                }
            }
        }

        [Column(Storage = "_QuantityPerUnit", DbType = "NVarChar(20)")]
        public string QuantityPerUnit
        {
            get
            {
                return this._QuantityPerUnit;
            }
            set
            {
                if ((this._QuantityPerUnit != value))
                {
                    this._QuantityPerUnit = value;
                }
            }
        }

        [Column(Storage = "_UnitPrice", DbType = "Money")]
        public Nullable<decimal> UnitPrice
        {
            get
            {
                return this._UnitPrice;
            }
            set
            {
                if ((this._UnitPrice != value))
                {
                    this._UnitPrice = value;
                }
            }
        }

        [Column(Storage = "_UnitsInStock", DbType = "SmallInt")]
        public Nullable<short> UnitsInStock
        {
            get
            {
                return this._UnitsInStock;
            }
            set
            {
                if ((this._UnitsInStock != value))
                {
                    this._UnitsInStock = value;
                }
            }
        }

        [Column(Storage = "_UnitsOnOrder", DbType = "SmallInt")]
        public Nullable<short> UnitsOnOrder
        {
            get
            {
                return this._UnitsOnOrder;
            }
            set
            {
                if ((this._UnitsOnOrder != value))
                {
                    this._UnitsOnOrder = value;
                }
            }
        }

        [Column(Storage = "_ReorderLevel", DbType = "SmallInt")]
        public Nullable<short> ReorderLevel
        {
            get
            {
                return this._ReorderLevel;
            }
            set
            {
                if ((this._ReorderLevel != value))
                {
                    this._ReorderLevel = value;
                }
            }
        }

        [Column(Storage = "_Discontinued", DbType = "Bit NOT NULL")]
        public bool Discontinued
        {
            get
            {
                return this._Discontinued;
            }
            set
            {
                if ((this._Discontinued != value))
                {
                    this._Discontinued = value;
                }
            }
        }

    }
}